package com.atguigu.execle;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.atguigu.eud_teacher.dao.SubjectDao;

import java.util.Map;

public class ReadListener extends AnalysisEventListener<EasyData> {

    private SubjectDao baseMapper;

    @Override
    public void invoke(EasyData data, AnalysisContext analysisContext) {
//        SubjectEntity subjectEntity = new SubjectEntity();
//        subjectEntity.setParentId("0");
//        subjectEntity.setTitle(data.getOne());
//        baseMapper.insert(subjectEntity);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
    }
}
